package com.jd.dao;

import com.jd.pojo.Movie;
import com.jd.pojo.MovieExample;
import java.util.List;

import com.jd.pojo.Query;
import com.jd.pojo.Selectquery;
import org.apache.ibatis.annotations.Param;

public interface MovieMapper {
    int countByExample(MovieExample example);

    int deleteByExample(MovieExample example);

    int deleteByPrimaryKey(Integer movieid);

    int insert(Movie record);

    int insertSelective(Movie record);

    List<Movie> selectByExample(MovieExample example);

    Movie selectByPrimaryKey(Integer movieid);

    int updateByExampleSelective(@Param("record") Movie record, @Param("example") MovieExample example);

    int updateByExample(@Param("record") Movie record, @Param("example") MovieExample example);

    int updateByPrimaryKeySelective(Movie record);

    int updateByPrimaryKey(Movie record);

    List<Movie> selectDefaultMovies(int limit);

    List<Movie> selectMovieByCategory(Selectquery query);

    List<Movie> selectMovieByName(String movieName);

    /**
     * 总条数
     * @param query
     * @return
     */
    Integer movieCount(Query query);

    List<Movie> selectMovieListByQuery(Query query);
}